<template>
  <van-swipe class="my-swipe" :autoplay="3000" v-bind="$attrs" lazy-render indicator-color="white">
    <van-swipe-item v-for="(item, index) in data" :key="index">
      <slot :item="item" />
    </van-swipe-item>
  </van-swipe>
</template>

<script setup lang="ts">
import { defineProps } from 'vue';

defineProps({
  data: { type: Array },
});
</script>

<style lang="scss" scoped></style>
